﻿using System;
using System.Collections.Generic;
using System.Text;
using log4net.Core;
using log4net.Appender;

namespace RouterControl.Whs.ErrorReporting
{
    public sealed class ErrorReportingLogger : AppenderSkeleton
    {

        protected override void Append(LoggingEvent le)
        {
            try
            {
                ErrorReportingSingleton.Instance.AddLoggingEvent(le);
            }
            catch
            {
                // never fail
            }
        }

    }
}
